package main

import (
	"fmt"
	"time"
)

/*
定时器
 */



func main()  {
	type UserAction struct {
		ChangeNameTime time.Time `json:"changeNameTime"`
	}
	//str := "{changeNameTime = 100}"

	userAction := &UserAction{}
	changeNameTime := userAction.ChangeNameTime
	month := changeNameTime.Month()
	fmt.Println(userAction, userAction.ChangeNameTime.Unix())
	fmt.Println(month)

	fmt.Println("__", time.Now().Format("10:00:00 2020/11/11"))

	strTime := fmt.Sprintf("%d-%d-%d", time.Now().Year(), time.Now().Month(), time.Now().Day())

	fmt.Println("___", strTime)
}

